package com.atguigu.order.client;

import com.atguigu.order.entity.vo.MemberOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-ucenter")
public interface UcenterClient {
    /**
     * 获取已登录的用户信息
     * <p>
     * MemberController
     *
     * @param id
     * @return
     */
    @GetMapping("/ucenter/service/client/getMemb/{id}")
    public MemberOrderVo getMemb(@PathVariable("id") String id);
}
